{% extends "base.html" %}
{% block header %}导入卡{% endblock %}
{% block content %}
<div class="card shadow-sm rounded p-4 mb-4">
    <h4 class="mb-3">批量导入卡</h4>
    <form method="post" enctype="multipart/form-data">
        {% csrf_token %}
        <div class="mb-3">
            <label for="file" class="form-label">选择文件（支持txt或Excel，每行一个ICCID）</label>
            <input type="file" class="form-control" id="file" name="file" accept=".txt,.xls,.xlsx" required>
        </div>
        <button type="submit" class="btn btn-primary">导入</button>
        <a href="/cards/" class="btn btn-secondary ms-2">返回</a>
    </form>
    <div class="mt-3 text-muted">文件格式说明：txt每行一个ICCID，Excel第一列为ICCID。</div>
</div>
{% endblock %}
